<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="UTF-8">
		<title>红酒会 - 智能红酒管家</title>
		<link rel="shortcut icon" type="image/x-icon" href="${ctx}/favicon.ico" />
		<link type="text/css" rel="stylesheet" href="${ctx}/static/styles/bootstrap.min.css" />
	</head>
<body>
	
	<c:import url="/header"><c:param name="module">vintry</c:param></c:import>
	<c:import url="/vintry/menu"><c:param name="menu">5</c:param></c:import>
	<c:import url="/talk/right" />
	
	<div class="outWrap">
		<div class="spekBoxIn entde">
			<div style="min-height:670px;">
				<a href="${ctx}/vintry/taste/create" class="btn btn-info"><i class="icon-plus-sign icon-white"></i> 新建日志</a><hr/>
				<div style="line-height:23px;">
					<c:forEach var="list" items="${page.content}">
						酒名：<span class="label label-info">${list.enName}/${list.chName}</span><br/>
						年份：<span class="label label-success">${list.vintage}年</span><br/>
						综合评价：
						<c:choose>
							<c:when test="${empty list.rating}"><img src="${ctx}/static/libs/raty/img/star-0.png"/></c:when>
							<c:otherwise><img src="${ctx}/static/libs/raty/img/star-${list.rating}.png"/></c:otherwise>
						</c:choose><br/>
						评酒文：${list.comment}<br/>
						<span class="pull-right">发布于<fmt:formatDate value="${list.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span><br/>
						<hr/>
					</c:forEach>
				</div>
				<div class="pageListBox">
	            	<div class="pageList">
	            		<c:choose>
				  			<c:when test="${index == 0}">
				  				<a class="Pre now_A" href="javascript:;">首&nbsp;&nbsp;&nbsp;页</a>
	                			<a class="Pre now_A" href="javascript:;">上一页</a>
				  			</c:when>
				  			<c:otherwise>
				  				<a class="Pre" href="${ctx}/vintry/taste/list" ">首&nbsp;&nbsp;&nbsp;页</a>
	                			<a class="Pre" href="${ctx}/vintry/taste/list?index=${index - 1}">上一页</a>
				  			</c:otherwise>
				  		</c:choose>
				  		<c:choose>
				  			<c:when test="${page.totalPages == 0 or index == page.totalPages - 1}">
				  				<a class="Pre now_A" href="javascript:;">下一页</a>
	                			<a class="Pre now_A" href="javascript:;">尾&nbsp;&nbsp;&nbsp;页</a>
				  			</c:when>
				  			<c:otherwise>
				  				<a class="Pre" href="${ctx}/vintry/taste/list?index=${index + 1}">下一页</a>
	                			<a class="Pre" href="${ctx}/vintry/taste/list?index=${page.totalPages - 1}">尾&nbsp;&nbsp;&nbsp;页</a>
				  			</c:otherwise>
				  		</c:choose>
	                </div>
	            </div>
			</div>
		</div>
	</div>
	<c:import url="/WEB-INF/views/footer.jsp" />
</body>
</html>